/*
 * @Descripttion: 关联码相关
 * @Author: 何伟伦 weilun@ssc-hn.com
 * @Date: 2024-05-07
 * @LastEditors: 何伟伦 weilun@ssc-hn.com
 * @LastEditTime: 2024-05-10
 */
import request from '/@/api/request'

/** 码关联信息查询 */
export const requestAssociationInfo = (data: CodeAssociationTypes.IRequest) => {
  return request.get<IBaseResponse<CodeAssociationTypes.IResponse>>('/business/tracecode/codeAssociation/associationInfo/V1', data)
}

/** 确认关联 */
export const requestAssociationConfirm = (data: AssociationConfirmTypes.IRequest) => {
  return request.post<IBaseResponse<AssociationConfirmTypes.IResponse>>('/business/tracecode/codeAssociation/associationConfirm/V1', data)
}

export const requestGetAssociationInfo = (data: GetAssociationInfoTypes.IRequest) => {
  return request.post<IPaginationResponse<GetAssociationInfoTypes.IResponse>>('/business/tracecode/codeAssociation/checkAssociationsPage/V1', data)
}
